<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<script type="text/javascript" src="js/jquery-1.8.0.js" charset="utf-8"></script>
		<script type="text/javascript" src="js/win.js" charset="utf-8"></script>
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript">
			function openCustomer() {
				$.openWin({iframe:true,id:"customerWin",width:600,height:300,action:"selectCustomer.do",title:"弹出窗口"});
			}
			function settingCustomer(json) {
				$("#c").val(json.cust_name);
				$.closeWin("customerWin");
			}
			function openDept() {
				$.openWin({iframe:true,id:"deptWin",width:600,height:300,action:"selectDept.do",title:"弹出窗口"});
			}
			function settingDept(json) {
				$("#d").val(json.dept_name);
				$.closeWin("deptWin");
			}
			function openEmployee() {
				$.openWin({iframe:true,id:"employeeWin",width:600,height:300,action:"selectEmployeeList.do",title:"弹出窗口"});
			}
			function settingEmployee(json) {
				$("#e").val(json.realname);
				$.closeWin("employeeWin");
			}
			function openDistrict() {
				$.openWin({iframe:true,id:"districtWin",width:600,height:300,action:"selectDistrictPage.do",title:"弹出窗口"});
			}
			function settingDistrict(json) {
				
			}
		</script>
	</head>
	<body>
	 	客户：<input name="o" value="" id="c" onclick="openCustomer();"/>
	 	部门：<input name="o" value="" id="d" onclick="openDept();"/>
	 	员工：<input name="o" value="" id="e" onclick="openEmployee();"/>
	 	地区：<input name="o" value="" id="i" onclick="openDistrict();"/>
	</body>
</html>